Optimal. Leaf size=90 \[ \frac{d (f x)^m \left (a+b \log \left (c x^n\right )\right )}{f m}+\frac{e x^m (f x)^m \left (a+b \log \left (c x^n\right )\right )}{2 f m}-\frac{b d n (f x)^m}{f m^2}-\frac{b e n x^m (f x)^m}{4 f m^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.116969, antiderivative size = 113, normalized size of antiderivative = 1.26, number of steps used = 5, number of rules used = 4, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.16, Rules used = {2339, 2338, 266, 43} \[ \frac{x^{1-m} (f x)^{m-1} \left (d+e x^m\right )^2 \left (a+b \log \left (c x^n\right )\right )}{2 e m}-\frac{b d^2 n x^{1-m} \log (x) (f x)^{m-1}}{2 e m}-\frac{b d n x (f x)^{m-1}}{m^2}-\frac{b e n x^{m+1} (f x)^{m-1}}{4 m^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2339
Rule 2338
Rule 266
Rule 43
Rubi steps
\begin{align*} \int (f x)^{-1+m} \left (d+e x^m\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx &=\left (x^{1-m} (f x)^{-1+m}\right ) \int x^{-1+m} \left (d+e x^m\right ) \left (a+b \log \left (c x^n\right )\right ) \, dx\\ &=\frac{x^{1-m} (f x)^{-1+m} \left (d+e x^m\right )^2 \left (a+b \log \left (c x^n\right )\right )}{2 e m}-\frac{\left (b n x^{1-m} (f x)^{-1+m}\right ) \int \frac{\left (d+e x^m\right )^2}{x} \, dx}{2 e m}\\ &=\frac{x^{1-m} (f x)^{-1+m} \left (d+e x^m\right )^2 \left (a+b \log \left (c x^n\right )\right )}{2 e m}-\frac{\left (b n x^{1-m} (f x)^{-1+m}\right ) \operatorname{Subst}\left (\int \frac{(d+e x)^2}{x} \, dx,x,x^m\right )}{2 e m^2}\\ &=\frac{x^{1-m} (f x)^{-1+m} \left (d+e x^m\right )^2 \left (a+b \log \left (c x^n\right )\right )}{2 e m}-\frac{\left (b n x^{1-m} (f x)^{-1+m}\right ) \operatorname{Subst}\left (\int \left (2 d e+\frac{d^2}{x}+e^2 x\right ) \, dx,x,x^m\right )}{2 e m^2}\\ &=-\frac{b d n x (f x)^{-1+m}}{m^2}-\frac{b e n x^{1+m} (f x)^{-1+m}}{4 m^2}-\frac{b d^2 n x^{1-m} (f x)^{-1+m} \log (x)}{2 e m}+\frac{x^{1-m} (f x)^{-1+m} \left (d+e x^m\right )^2 \left (a+b \log \left (c x^n\right )\right )}{2 e m}\\ \end{align*}
Mathematica [A] time = 0.063729, size = 61, normalized size = 0.68 \[ \frac{(f x)^m \left (2 a m \left (2 d+e x^m\right )+2 b m \log \left (c x^n\right ) \left (2 d+e x^m\right )-b n \left (4 d+e x^m\right )\right )}{4 f m^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.165, size = 426, normalized size = 4.7 \begin{align*}{\frac{b \left ( e{x}^{m}+2\,d \right ) x\ln \left ({x}^{n} \right ) }{2\,m}{{\rm e}^{{\frac{ \left ( -1+m \right ) \left ( -i\pi \, \left ({\it csgn} \left ( ifx \right ) \right ) ^{3}+i\pi \, \left ({\it csgn} \left ( ifx \right ) \right ) ^{2}{\it csgn} \left ( if \right ) +i\pi \, \left ({\it csgn} \left ( ifx \right ) \right ) ^{2}{\it csgn} \left ( ix \right ) -i\pi \,{\it csgn} \left ( ifx \right ){\it csgn} \left ( if \right ){\it csgn} \left ( ix \right ) +2\,\ln \left ( f \right ) +2\,\ln \left ( x \right ) \right ) }{2}}}}}+{\frac{ \left ( i\pi \,be{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{x}^{m}m-i\pi \,be{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ){x}^{m}m-i\pi \,be \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}{x}^{m}m+i\pi \,be \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ){x}^{m}m+2\,i\pi \,bdm{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-2\,i\pi \,bdm{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -2\,i\pi \,bdm \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+2\,i\pi \,bdm \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) +2\,\ln \left ( c \right ) be{x}^{m}m+4\,\ln \left ( c \right ) bdm+2\,{x}^{m}aem-{x}^{m}ben+4\,adm-4\,bdn \right ) x}{4\,{m}^{2}}{{\rm e}^{{\frac{ \left ( -1+m \right ) \left ( -i\pi \, \left ({\it csgn} \left ( ifx \right ) \right ) ^{3}+i\pi \, \left ({\it csgn} \left ( ifx \right ) \right ) ^{2}{\it csgn} \left ( if \right ) +i\pi \, \left ({\it csgn} \left ( ifx \right ) \right ) ^{2}{\it csgn} \left ( ix \right ) -i\pi \,{\it csgn} \left ( ifx \right ){\it csgn} \left ( if \right ){\it csgn} \left ( ix \right ) +2\,\ln \left ( f \right ) +2\,\ln \left ( x \right ) \right ) }{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.32975, size = 201, normalized size = 2.23 \begin{align*} \frac{{\left (2 \, b e m n \log \left (x\right ) + 2 \, b e m \log \left (c\right ) + 2 \, a e m - b e n\right )} f^{m - 1} x^{2 \, m} + 4 \,{\left (b d m n \log \left (x\right ) + b d m \log \left (c\right ) + a d m - b d n\right )} f^{m - 1} x^{m}}{4 \, m^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33761, size = 203, normalized size = 2.26 \begin{align*} \frac{b d f^{m} n x^{m} \log \left (x\right )}{f m} + \frac{b f^{m} n x^{2 \, m} e \log \left (x\right )}{2 \, f m} + \frac{b d f^{m} x^{m} \log \left (c\right )}{f m} + \frac{b f^{m} x^{2 \, m} e \log \left (c\right )}{2 \, f m} + \frac{a d f^{m} x^{m}}{f m} - \frac{b d f^{m} n x^{m}}{f m^{2}} + \frac{a f^{m} x^{2 \, m} e}{2 \, f m} - \frac{b f^{m} n x^{2 \, m} e}{4 \, f m^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]